package com.example.emos.wx.config.shiro;

import org.springframework.stereotype.Component;

/**
 * @author 曹杰
 * @version 1.0
 */

@Component
public class ThreadLocalToken {
    private ThreadLocal<String> local = new ThreadLocal<>();

    public void setToken(String Token){
        local.set(Token);
    }

    public String getToken(){
        return (String) local.get();
    }

    public void clear(){
        local.remove();
    }
}
